home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 August / MW 8 2003 CD1.iso / Inside Macworld / Product News / gimp-1.2.4.sit / gimp-1.2.4 / plug-ins / perl / configure < prev    next >
Encoding:
Text File  |  2000-11-17  |  59.8 KB  |  1,897 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_default_prefix=$prefix
  15. ac_help="$ac_help
  16.   --with-cflags=FLAGS     Set CFLAGS to FLAGS (optional)"
  17. ac_help="$ac_help
  18.   --with-ldflags=FLAGS    Set LDFLAGS to FLAGS (optional)"
  19. ac_help="$ac_help
  20.   --with-includes=DIR     Additionally search for includes in dir DIR (optional)"
  21. ac_help="$ac_help
  22.   --with-libs=DIR         Additionally search for libraries in dir in DIR (optional)"
  23. ac_help="$ac_help
  24.   --with-gimp-prefix=PFX  Prefix where GIMP is installed (optional)"
  25. ac_help="$ac_help
  26.   --with-gimp-exec-prefix=PFX Exec prefix where GIMP is installed (optional)"
  27. ac_help="$ac_help
  28.   --disable-gimptest      Do not try to compile and run a test GIMP program"
  29. ac_help="$ac_help
  30.   --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)"
  31. ac_help="$ac_help
  32.   --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
  33. ac_help="$ac_help
  34.   --disable-glibtest       Do not try to compile and run a test GLIB program"
  35.  
  36. # Initialize some variables set by options.
  37. # The variables have the same names as the options, with
  38. # dashes changed to underlines.
  39. build=NONE
  40. cache_file=./config.cache
  41. exec_prefix=NONE
  42. host=NONE
  43. no_create=
  44. nonopt=NONE
  45. no_recursion=
  46. prefix=NONE
  47. program_prefix=NONE
  48. program_suffix=NONE
  49. program_transform_name=s,x,x,
  50. silent=
  51. site=
  52. srcdir=
  53. target=NONE
  54. verbose=
  55. x_includes=NONE
  56. x_libraries=NONE
  57. bindir='${exec_prefix}/bin'
  58. sbindir='${exec_prefix}/sbin'
  59. libexecdir='${exec_prefix}/libexec'
  60. datadir='${prefix}/share'
  61. sysconfdir='${prefix}/etc'
  62. sharedstatedir='${prefix}/com'
  63. localstatedir='${prefix}/var'
  64. libdir='${exec_prefix}/lib'
  65. includedir='${prefix}/include'
  66. oldincludedir='/usr/include'
  67. infodir='${prefix}/info'
  68. mandir='${prefix}/man'
  69.  
  70. # Initialize some other variables.
  71. subdirs=
  72. MFLAGS= MAKEFLAGS=
  73. SHELL=${CONFIG_SHELL-/bin/sh}
  74. # Maximum number of lines to put in a shell here document.
  75. ac_max_here_lines=12
  76.  
  77. ac_prev=
  78. for ac_option
  79. do
  80.  
  81.   # If the previous option needs an argument, assign it.
  82.   if test -n "$ac_prev"; then
  83.     eval "$ac_prev=\$ac_option"
  84.     ac_prev=
  85.     continue
  86.   fi
  87.  
  88.   case "$ac_option" in
  89.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  90.   *) ac_optarg= ;;
  91.   esac
  92.  
  93.   # Accept the important Cygnus configure options, so we can diagnose typos.
  94.  
  95.   case "$ac_option" in
  96.  
  97.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  98.     ac_prev=bindir ;;
  99.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  100.     bindir="$ac_optarg" ;;
  101.  
  102.   -build | --build | --buil | --bui | --bu)
  103.     ac_prev=build ;;
  104.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  105.     build="$ac_optarg" ;;
  106.  
  107.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  108.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  109.     ac_prev=cache_file ;;
  110.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  111.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  112.     cache_file="$ac_optarg" ;;
  113.  
  114.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  115.     ac_prev=datadir ;;
  116.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  117.   | --da=*)
  118.     datadir="$ac_optarg" ;;
  119.  
  120.   -disable-* | --disable-*)
  121.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  122.     # Reject names that are not valid shell variable names.
  123.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  124.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  125.     fi
  126.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  127.     eval "enable_${ac_feature}=no" ;;
  128.  
  129.   -enable-* | --enable-*)
  130.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  131.     # Reject names that are not valid shell variable names.
  132.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  133.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  134.     fi
  135.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  136.     case "$ac_option" in
  137.       *=*) ;;
  138.       *) ac_optarg=yes ;;
  139.     esac
  140.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  141.  
  142.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  143.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  144.   | --exec | --exe | --ex)
  145.     ac_prev=exec_prefix ;;
  146.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  147.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  148.   | --exec=* | --exe=* | --ex=*)
  149.     exec_prefix="$ac_optarg" ;;
  150.  
  151.   -gas | --gas | --ga | --g)
  152.     # Obsolete; use --with-gas.
  153.     with_gas=yes ;;
  154.  
  155.   -help | --help | --hel | --he)
  156.     # Omit some internal or obsolete options to make the list less imposing.
  157.     # This message is too long to be a string in the A/UX 3.1 sh.
  158.     cat << EOF
  159. Usage: configure [options] [host]
  160. Options: [defaults in brackets after descriptions]
  161. Configuration:
  162.   --cache-file=FILE       cache test results in FILE
  163.   --help                  print this message
  164.   --no-create             do not create output files
  165.   --quiet, --silent       do not print \`checking...' messages
  166.   --version               print the version of autoconf that created configure
  167. Directory and file names:
  168.   --prefix=PREFIX         install architecture-independent files in PREFIX
  169.                           [$ac_default_prefix]
  170.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  171.                           [same as prefix]
  172.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  173.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  174.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  175.   --datadir=DIR           read-only architecture-independent data in DIR
  176.                           [PREFIX/share]
  177.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  178.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  179.                           [PREFIX/com]
  180.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  181.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  182.   --includedir=DIR        C header files in DIR [PREFIX/include]
  183.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  184.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  185.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  186.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  187.   --program-prefix=PREFIX prepend PREFIX to installed program names
  188.   --program-suffix=SUFFIX append SUFFIX to installed program names
  189.   --program-transform-name=PROGRAM
  190.                           run sed PROGRAM on installed program names
  191. EOF
  192.     cat << EOF
  193. Host type:
  194.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  195.   --host=HOST             configure for HOST [guessed]
  196.   --target=TARGET         configure for TARGET [TARGET=HOST]
  197. Features and packages:
  198.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  199.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  200.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  201.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  202.   --x-includes=DIR        X include files are in DIR
  203.   --x-libraries=DIR       X library files are in DIR
  204. EOF
  205.     if test -n "$ac_help"; then
  206.       echo "--enable and --with options recognized:$ac_help"
  207.     fi
  208.     exit 0 ;;
  209.  
  210.   -host | --host | --hos | --ho)
  211.     ac_prev=host ;;
  212.   -host=* | --host=* | --hos=* | --ho=*)
  213.     host="$ac_optarg" ;;
  214.  
  215.   -includedir | --includedir | --includedi | --included | --include \
  216.   | --includ | --inclu | --incl | --inc)
  217.     ac_prev=includedir ;;
  218.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  219.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  220.     includedir="$ac_optarg" ;;
  221.  
  222.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  223.     ac_prev=infodir ;;
  224.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  225.     infodir="$ac_optarg" ;;
  226.  
  227.   -libdir | --libdir | --libdi | --libd)
  228.     ac_prev=libdir ;;
  229.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  230.     libdir="$ac_optarg" ;;
  231.  
  232.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  233.   | --libexe | --libex | --libe)
  234.     ac_prev=libexecdir ;;
  235.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  236.   | --libexe=* | --libex=* | --libe=*)
  237.     libexecdir="$ac_optarg" ;;
  238.  
  239.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  240.   | --localstate | --localstat | --localsta | --localst \
  241.   | --locals | --local | --loca | --loc | --lo)
  242.     ac_prev=localstatedir ;;
  243.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  244.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  245.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  246.     localstatedir="$ac_optarg" ;;
  247.  
  248.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  249.     ac_prev=mandir ;;
  250.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  251.     mandir="$ac_optarg" ;;
  252.  
  253.   -nfp | --nfp | --nf)
  254.     # Obsolete; use --without-fp.
  255.     with_fp=no ;;
  256.  
  257.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  258.   | --no-cr | --no-c)
  259.     no_create=yes ;;
  260.  
  261.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  262.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  263.     no_recursion=yes ;;
  264.  
  265.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  266.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  267.   | --oldin | --oldi | --old | --ol | --o)
  268.     ac_prev=oldincludedir ;;
  269.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  270.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  271.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  272.     oldincludedir="$ac_optarg" ;;
  273.  
  274.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  275.     ac_prev=prefix ;;
  276.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  277.     prefix="$ac_optarg" ;;
  278.  
  279.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  280.   | --program-pre | --program-pr | --program-p)
  281.     ac_prev=program_prefix ;;
  282.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  283.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  284.     program_prefix="$ac_optarg" ;;
  285.  
  286.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  287.   | --program-suf | --program-su | --program-s)
  288.     ac_prev=program_suffix ;;
  289.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  290.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  291.     program_suffix="$ac_optarg" ;;
  292.  
  293.   -program-transform-name | --program-transform-name \
  294.   | --program-transform-nam | --program-transform-na \
  295.   | --program-transform-n | --program-transform- \
  296.   | --program-transform | --program-transfor \
  297.   | --program-transfo | --program-transf \
  298.   | --program-trans | --program-tran \
  299.   | --progr-tra | --program-tr | --program-t)
  300.     ac_prev=program_transform_name ;;
  301.   -program-transform-name=* | --program-transform-name=* \
  302.   | --program-transform-nam=* | --program-transform-na=* \
  303.   | --program-transform-n=* | --program-transform-=* \
  304.   | --program-transform=* | --program-transfor=* \
  305.   | --program-transfo=* | --program-transf=* \
  306.   | --program-trans=* | --program-tran=* \
  307.   | --progr-tra=* | --program-tr=* | --program-t=*)
  308.     program_transform_name="$ac_optarg" ;;
  309.  
  310.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  311.   | -silent | --silent | --silen | --sile | --sil)
  312.     silent=yes ;;
  313.  
  314.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  315.     ac_prev=sbindir ;;
  316.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  317.   | --sbi=* | --sb=*)
  318.     sbindir="$ac_optarg" ;;
  319.  
  320.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  321.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  322.   | --sharedst | --shareds | --shared | --share | --shar \
  323.   | --sha | --sh)
  324.     ac_prev=sharedstatedir ;;
  325.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  326.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  327.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  328.   | --sha=* | --sh=*)
  329.     sharedstatedir="$ac_optarg" ;;
  330.  
  331.   -site | --site | --sit)
  332.     ac_prev=site ;;
  333.   -site=* | --site=* | --sit=*)
  334.     site="$ac_optarg" ;;
  335.  
  336.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  337.     ac_prev=srcdir ;;
  338.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  339.     srcdir="$ac_optarg" ;;
  340.  
  341.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  342.   | --syscon | --sysco | --sysc | --sys | --sy)
  343.     ac_prev=sysconfdir ;;
  344.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  345.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  346.     sysconfdir="$ac_optarg" ;;
  347.  
  348.   -target | --target | --targe | --targ | --tar | --ta | --t)
  349.     ac_prev=target ;;
  350.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  351.     target="$ac_optarg" ;;
  352.  
  353.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  354.     verbose=yes ;;
  355.  
  356.   -version | --version | --versio | --versi | --vers)
  357.     echo "configure generated by autoconf version 2.13"
  358.     exit 0 ;;
  359.  
  360.   -with-* | --with-*)
  361.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  362.     # Reject names that are not valid shell variable names.
  363.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  364.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  365.     fi
  366.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  367.     case "$ac_option" in
  368.       *=*) ;;
  369.       *) ac_optarg=yes ;;
  370.     esac
  371.     eval "with_${ac_package}='$ac_optarg'" ;;
  372.  
  373.   -without-* | --without-*)
  374.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  375.     # Reject names that are not valid shell variable names.
  376.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  377.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  378.     fi
  379.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  380.     eval "with_${ac_package}=no" ;;
  381.  
  382.   --x)
  383.     # Obsolete; use --with-x.
  384.     with_x=yes ;;
  385.  
  386.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  387.   | --x-incl | --x-inc | --x-in | --x-i)
  388.     ac_prev=x_includes ;;
  389.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  390.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  391.     x_includes="$ac_optarg" ;;
  392.  
  393.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  394.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  395.     ac_prev=x_libraries ;;
  396.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  397.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  398.     x_libraries="$ac_optarg" ;;
  399.  
  400.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  401.     ;;
  402.  
  403.   *)
  404.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  405.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  406.     fi
  407.     if test "x$nonopt" != xNONE; then
  408.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  409.     fi
  410.     nonopt="$ac_option"
  411.     ;;
  412.  
  413.   esac
  414. done
  415.  
  416. if test -n "$ac_prev"; then
  417.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  418. fi
  419.  
  420. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  421.  
  422. # File descriptor usage:
  423. # 0 standard input
  424. # 1 file creation
  425. # 2 errors and warnings
  426. # 3 some systems may open it to /dev/tty
  427. # 4 used on the Kubota Titan
  428. # 6 checking for... messages and results
  429. # 5 compiler messages saved in config.log
  430. if test "$silent" = yes; then
  431.   exec 6>/dev/null
  432. else
  433.   exec 6>&1
  434. fi
  435. exec 5>./config.log
  436.  
  437. echo "\
  438. This file contains any messages produced by compilers while
  439. running configure, to aid debugging if configure makes a mistake.
  440. " 1>&5
  441.  
  442. # Strip out --no-create and --no-recursion so they do not pile up.
  443. # Also quote any args containing shell metacharacters.
  444. ac_configure_args=
  445. for ac_arg
  446. do
  447.   case "$ac_arg" in
  448.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  449.   | --no-cr | --no-c) ;;
  450.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  451.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  452.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  453.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  454.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  455.   esac
  456. done
  457.  
  458. # NLS nuisances.
  459. # Only set these to C if already set.  These must not be set unconditionally
  460. # because not all systems understand e.g. LANG=C (notably SCO).
  461. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  462. # Non-C LC_CTYPE values break the ctype check.
  463. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  464. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  465. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  466. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  467.  
  468. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  469. rm -rf conftest* confdefs.h
  470. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  471. echo > confdefs.h
  472.  
  473. # A filename unique to this package, relative to the directory that
  474. # configure is in, which we can look for to find out if srcdir is correct.
  475. ac_unique_file=config.pl.in
  476.  
  477. # Find the source files, if location was not specified.
  478. if test -z "$srcdir"; then
  479.   ac_srcdir_defaulted=yes
  480.   # Try the directory containing this script, then its parent.
  481.   ac_prog=$0
  482.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  483.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  484.   srcdir=$ac_confdir
  485.   if test ! -r $srcdir/$ac_unique_file; then
  486.     srcdir=..
  487.   fi
  488. else
  489.   ac_srcdir_defaulted=no
  490. fi
  491. if test ! -r $srcdir/$ac_unique_file; then
  492.   if test "$ac_srcdir_defaulted" = yes; then
  493.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  494.   else
  495.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  496.   fi
  497. fi
  498. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  499.  
  500. # Prefer explicitly selected file to automatically selected ones.
  501. if test -z "$CONFIG_SITE"; then
  502.   if test "x$prefix" != xNONE; then
  503.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  504.   else
  505.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  506.   fi
  507. fi
  508. for ac_site_file in $CONFIG_SITE; do
  509.   if test -r "$ac_site_file"; then
  510.     echo "loading site script $ac_site_file"
  511.     . "$ac_site_file"
  512.   fi
  513. done
  514.  
  515. if test -r "$cache_file"; then
  516.   echo "loading cache $cache_file"
  517.   . $cache_file
  518. else
  519.   echo "creating cache $cache_file"
  520.   > $cache_file
  521. fi
  522.  
  523. ac_ext=c
  524. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  525. ac_cpp='$CPP $CPPFLAGS'
  526. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  527. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  528. cross_compiling=$ac_cv_prog_cc_cross
  529.  
  530. ac_exeext=
  531. ac_objext=o
  532. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  533.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  534.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  535.     ac_n= ac_c='
  536. ' ac_t='    '
  537.   else
  538.     ac_n=-n ac_c= ac_t=
  539.   fi
  540. else
  541.   ac_n= ac_c='\c' ac_t=
  542. fi
  543.  
  544.  
  545.  
  546. if test -z "$IN_GIMP"; then
  547.    echo
  548.    echo "*** WOAH there! ***"
  549.    echo Please do NOT call configure directly, rather run
  550.    echo perl Makefile.PL
  551.    echo as you would do with any other perl extension...
  552.    echo "This time I'll be doing it for you!"
  553.    echo
  554.    perl Makefile.PL
  555.    exit
  556. fi
  557.  
  558.  
  559.  
  560.  
  561. # Check whether --with-cflags or --without-cflags was given.
  562. if test "${with_cflags+set}" = set; then
  563.   withval="$with_cflags"
  564.   CFLAGS="$with_cflags"
  565. fi
  566.  
  567.  
  568. # Check whether --with-ldflags or --without-ldflags was given.
  569. if test "${with_ldflags+set}" = set; then
  570.   withval="$with_ldflags"
  571.   LDFLAGS="$with_ldflags"
  572. fi
  573.  
  574.  
  575. # Check whether --with-includes or --without-includes was given.
  576. if test "${with_includes+set}" = set; then
  577.   withval="$with_includes"
  578.   CPPFLAGS="$CPPFLAGS -I$with_includes"
  579. fi
  580.  
  581.  
  582. # Check whether --with-libs or --without-libs was given.
  583. if test "${with_libs+set}" = set; then
  584.   withval="$with_libs"
  585.   LIBS="$LIBS -L$with_libs"
  586. fi
  587.  
  588.  
  589. for ac_prog in gimp
  590. do
  591. # Extract the first word of "$ac_prog", so it can be a program name with args.
  592. set dummy $ac_prog; ac_word=$2
  593. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  594. echo "configure:595: checking for $ac_word" >&5
  595. if eval "test \"`echo '$''{'ac_cv_path_GIMP'+set}'`\" = set"; then
  596.   echo $ac_n "(cached) $ac_c" 1>&6
  597. else
  598.   case "$GIMP" in
  599.   /*)
  600.   ac_cv_path_GIMP="$GIMP" # Let the user override the test with a path.
  601.   ;;
  602.   ?:/*)             
  603.   ac_cv_path_GIMP="$GIMP" # Let the user override the test with a dos path.
  604.   ;;
  605.   *)
  606.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  607.   ac_dummy="$PATH"
  608.   for ac_dir in $ac_dummy; do 
  609.     test -z "$ac_dir" && ac_dir=.
  610.     if test -f $ac_dir/$ac_word; then
  611.       ac_cv_path_GIMP="$ac_dir/$ac_word"
  612.       break
  613.     fi
  614.   done
  615.   IFS="$ac_save_ifs"
  616.   ;;
  617. esac
  618. fi
  619. GIMP="$ac_cv_path_GIMP"
  620. if test -n "$GIMP"; then
  621.   echo "$ac_t""$GIMP" 1>&6
  622. else
  623.   echo "$ac_t""no" 1>&6
  624. fi
  625.  
  626. test -n "$GIMP" && break
  627. done
  628.  
  629.  
  630. # Check whether --with-gimp-prefix or --without-gimp-prefix was given.
  631. if test "${with_gimp_prefix+set}" = set; then
  632.   withval="$with_gimp_prefix"
  633.   gimptool_prefix="$withval"
  634. else
  635.   gimptool_prefix=""
  636. fi
  637.  
  638. # Check whether --with-gimp-exec-prefix or --without-gimp-exec-prefix was given.
  639. if test "${with_gimp_exec_prefix+set}" = set; then
  640.   withval="$with_gimp_exec_prefix"
  641.   gimptool_exec_prefix="$withval"
  642. else
  643.   gimptool_exec_prefix=""
  644. fi
  645.  
  646. # Check whether --enable-gimptest or --disable-gimptest was given.
  647. if test "${enable_gimptest+set}" = set; then
  648.   enableval="$enable_gimptest"
  649.   :
  650. else
  651.   enable_gimptest=yes
  652. fi
  653.  
  654.  
  655.   if test x$gimptool_exec_prefix != x ; then
  656.      gimptool_args="$gimptool_args --exec-prefix=$gimptool_exec_prefix"
  657.      if test x${GIMPTOOL+set} != xset ; then
  658.         GIMPTOOL=$gimptool_exec_prefix/bin/gimptool
  659.      fi
  660.   fi
  661.   if test x$gimptool_prefix != x ; then
  662.      gimptool_args="$gimptool_args --prefix=$gimptool_prefix"
  663.      if test x${GIMPTOOL+set} != xset ; then
  664.         GIMPTOOL=$gimptool_prefix/bin/gimptool
  665.      fi
  666.   fi
  667.  
  668.   # Extract the first word of "gimptool", so it can be a program name with args.
  669. set dummy gimptool; ac_word=$2
  670. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  671. echo "configure:672: checking for $ac_word" >&5
  672. if eval "test \"`echo '$''{'ac_cv_path_GIMPTOOL'+set}'`\" = set"; then
  673.   echo $ac_n "(cached) $ac_c" 1>&6
  674. else
  675.   case "$GIMPTOOL" in
  676.   /*)
  677.   ac_cv_path_GIMPTOOL="$GIMPTOOL" # Let the user override the test with a path.
  678.   ;;
  679.   ?:/*)             
  680.   ac_cv_path_GIMPTOOL="$GIMPTOOL" # Let the user override the test with a dos path.
  681.   ;;
  682.   *)
  683.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  684.   ac_dummy="$PATH"
  685.   for ac_dir in $ac_dummy; do 
  686.     test -z "$ac_dir" && ac_dir=.
  687.     if test -f $ac_dir/$ac_word; then
  688.       ac_cv_path_GIMPTOOL="$ac_dir/$ac_word"
  689.       break
  690.     fi
  691.   done
  692.   IFS="$ac_save_ifs"
  693.   test -z "$ac_cv_path_GIMPTOOL" && ac_cv_path_GIMPTOOL="no"
  694.   ;;
  695. esac
  696. fi
  697. GIMPTOOL="$ac_cv_path_GIMPTOOL"
  698. if test -n "$GIMPTOOL"; then
  699.   echo "$ac_t""$GIMPTOOL" 1>&6
  700. else
  701.   echo "$ac_t""no" 1>&6
  702. fi
  703.  
  704.   min_gimp_version=1.0.4
  705.   echo $ac_n "checking for GIMP - version >= $min_gimp_version""... $ac_c" 1>&6
  706. echo "configure:707: checking for GIMP - version >= $min_gimp_version" >&5
  707.   no_gimp=""
  708.   if test "$GIMPTOOL" = "no" ; then
  709.     no_gimp=yes
  710.   else
  711.     GIMP_CFLAGS=`$GIMPTOOL $gimptool_args --cflags`
  712.     GIMP_LIBS=`$GIMPTOOL $gimptool_args --libs`
  713.  
  714.     GIMP_CFLAGS_NOUI=`$GIMPTOOL $gimptool_args --cflags-noui`
  715.     noui_test=`echo $GIMP_CFLAGS_NOUI | sed 's/^\(Usage\).*/\1/'`
  716.     if test "$noui_test" = "Usage" ; then
  717.        GIMP_CFLAGS_NOUI=$GIMP_CFLAGS
  718.        GIMP_LIBS_NOUI=$GIMP_LIBS
  719.     else
  720.        GIMP_LIBS_NOUI=`$GIMPTOOL $gimptool_args --libs-noui`
  721.     fi
  722.  
  723.     GIMP_DATA_DIR=`$GIMPTOOL $gimptool_args --gimpdatadir`
  724.     GIMP_PLUGIN_DIR=`$GIMPTOOL $gimptool_args --gimpplugindir`
  725.     nodatadir_test=`echo $GIMP_DATA_DIR | sed 's/^\(Usage\).*/\1/'`
  726.     if test "$nodatadir_test" = "Usage" ; then
  727.        GIMP_DATA_DIR=""
  728.        GIMP_PLUGIN_DIR=""
  729.     fi
  730.  
  731.     gimptool_major_version=`$GIMPTOOL $gimptool_args --version | \
  732.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  733.     gimptool_minor_version=`$GIMPTOOL $gimptool_args --version | \
  734.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  735.     gimptool_micro_version=`$GIMPTOOL $gimptool_args --version | \
  736.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  737.     if test "x$enable_gimptest" = "xyes" ; then
  738.       ac_save_CFLAGS="$CFLAGS"
  739.       ac_save_LIBS="$LIBS"
  740.       CFLAGS="$CFLAGS $GIMP_CFLAGS"
  741.       LIBS="$LIBS $GIMP_LIBS"
  742.       rm -f conf.gimptest
  743.       if test "$cross_compiling" = yes; then
  744.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  745. else
  746.   cat > conftest.$ac_ext <<EOF
  747. #line 748 "configure"
  748. #include "confdefs.h"
  749.  
  750. #include <stdio.h>
  751. #include <stdlib.h>
  752.  
  753. #include <libgimp/gimp.h>
  754.  
  755. #ifndef GIMP_CHECK_VERSION
  756. #define GIMP_CHECK_VERSION(major, minor, micro) \
  757.     (GIMP_MAJOR_VERSION > (major) || \
  758.      (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
  759.      (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
  760.       GIMP_MICRO_VERSION >= (micro)))
  761. #endif
  762.  
  763. #if GIMP_CHECK_VERSION(1,1,20)
  764. GimpPlugInInfo
  765. #else
  766. GPlugInInfo
  767. #endif
  768. PLUG_IN_INFO =
  769. {
  770.   NULL,  /* init_proc */
  771.   NULL,  /* quit_proc */
  772.   NULL,  /* query_proc */
  773.   NULL   /* run_proc */
  774. };
  775.  
  776. int main ()
  777. {
  778.   int major, minor, micro;
  779.   char *tmp_version;
  780.  
  781.   system ("touch conf.gimptest");
  782.  
  783.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  784.   tmp_version = g_strdup("$min_gimp_version");
  785.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  786.      printf("%s, bad version string\n", "$min_gimp_version");
  787.      exit(1);
  788.    }
  789.  
  790.     if (($gimptool_major_version > major) ||
  791.         (($gimptool_major_version == major) && ($gimptool_minor_version > minor)) ||
  792.         (($gimptool_major_version == major) && ($gimptool_minor_version == minor) && ($gimptool_micro_version >= micro)))
  793.     {
  794.       return 0;
  795.     }
  796.   else
  797.     {
  798.       printf("\n*** 'gimptool --version' returned %d.%d.%d, but the minimum version\n", $gimptool_major_version, $gimptool_minor_version, $gimptool_micro_version);
  799.       printf("*** of GIMP required is %d.%d.%d. If gimptool is correct, then it is\n", major, minor, micro);
  800.       printf("*** best to upgrade to the required version.\n");
  801.       printf("*** If gimptool was wrong, set the environment variable GIMPTOOL\n");
  802.       printf("*** to point to the correct copy of gimptool, and remove the file\n");
  803.       printf("*** config.cache before re-running configure\n");
  804.       return 1;
  805.     }
  806. }
  807.  
  808.  
  809. EOF
  810. if { (eval echo configure:811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  811. then
  812.   :
  813. else
  814.   echo "configure: failed program was:" >&5
  815.   cat conftest.$ac_ext >&5
  816.   rm -fr conftest*
  817.   no_gimp=yes
  818. fi
  819. rm -fr conftest*
  820. fi
  821.  
  822.        CFLAGS="$ac_save_CFLAGS"
  823.        LIBS="$ac_save_LIBS"
  824.      fi
  825.   fi
  826.   if test "x$no_gimp" = x ; then
  827.      echo "$ac_t""yes" 1>&6
  828.      :     
  829.   else
  830.      echo "$ac_t""no" 1>&6
  831.      if test "$GIMPTOOL" = "no" ; then
  832.        echo "*** The gimptool script installed by GIMP could not be found"
  833.        echo "*** If GIMP was installed in PREFIX, make sure PREFIX/bin is in"
  834.        echo "*** your path, or set the GIMPTOOL environment variable to the"
  835.        echo "*** full path to gimptool."
  836.      else
  837.        if test -f conf.gimptest ; then
  838.         :
  839.        else
  840.           echo "*** Could not run GIMP test program, checking why..."
  841.           CFLAGS="$CFLAGS $GIMP_CFLAGS"
  842.           LIBS="$LIBS $GIMP_LIBS"
  843.           cat > conftest.$ac_ext <<EOF
  844. #line 845 "configure"
  845. #include "confdefs.h"
  846.  
  847. #include <stdio.h>
  848. #include <libgimp/gimp.h>
  849.  
  850. #ifndef GIMP_CHECK_VERSION
  851. #define GIMP_CHECK_VERSION(major, minor, micro) \
  852.     (GIMP_MAJOR_VERSION > (major) || \
  853.      (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
  854.      (GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
  855.       GIMP_MICRO_VERSION >= (micro)))
  856. #endif
  857.  
  858. #if GIMP_CHECK_VERSION(1,1,20)
  859. GimpPlugInInfo
  860. #else
  861. GPlugInInfo
  862. #endif
  863. PLUG_IN_INFO =
  864. {
  865.   NULL,  /* init_proc */
  866.   NULL,  /* quit_proc */
  867.   NULL,  /* query_proc */
  868.   NULL   /* run_proc */
  869. };
  870.  
  871. int main() {
  872.  return 0; 
  873. ; return 0; }
  874. EOF
  875. if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  876.   rm -rf conftest*
  877.    echo "*** The test program compiled, but did not run. This usually means"
  878.           echo "*** that the run-time linker is not finding GIMP or finding the wrong"
  879.           echo "*** version of GIMP. If it is not finding GIMP, you'll need to set your"
  880.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  881.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  882.           echo "*** is required on your system"
  883.       echo "***"
  884.           echo "*** If you have an old version installed, it is best to remove it, although"
  885.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  886. else
  887.   echo "configure: failed program was:" >&5
  888.   cat conftest.$ac_ext >&5
  889.   rm -rf conftest*
  890.    echo "*** The test program failed to compile or link. See the file config.log for the"
  891.           echo "*** exact error that occured. This usually means GIMP was incorrectly installed"
  892.           echo "*** or that you have moved GIMP since it was installed. In the latter case, you"
  893.           echo "*** may want to edit the gimptool script: $GIMPTOOL" 
  894. fi
  895. rm -f conftest*
  896.           CFLAGS="$ac_save_CFLAGS"
  897.           LIBS="$ac_save_LIBS"
  898.        fi
  899.      fi
  900.      GIMP_CFLAGS=""
  901.      GIMP_LIBS=""
  902.      GIMP_CFLAGS_NOUI=""
  903.      GIMP_LIBS_NOUI=""
  904.      echo "configure: warning: ** unable to find gimp" 1>&2
  905.   fi
  906.   
  907.   
  908.   
  909.   
  910.   
  911.   
  912.   rm -f conf.gimptest
  913.  
  914.  
  915. gimptool_major_version=`$GIMPTOOL $gimptool_args --version | \
  916.    sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  917. gimptool_minor_version=`$GIMPTOOL $gimptool_args --version | \
  918.    sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  919.  
  920. if test $gimptool_major_version -lt 2 && test $gimptool_minor_version -lt 1 ; then
  921.    echo
  922.    echo '** you are using a too old version of gimp (this includes all _stable_'
  923.    echo '** 1.0.x versions!). While this plug-in should still compile with the'
  924.    echo '** released 1.0.x versions of the gimp, many scripts will not, since they'
  925.    echo '** already use the new API.'
  926.    echo
  927. fi
  928.  
  929.  
  930. # Check whether --with-glib-prefix or --without-glib-prefix was given.
  931. if test "${with_glib_prefix+set}" = set; then
  932.   withval="$with_glib_prefix"
  933.   glib_config_prefix="$withval"
  934. else
  935.   glib_config_prefix=""
  936. fi
  937.  
  938. # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
  939. if test "${with_glib_exec_prefix+set}" = set; then
  940.   withval="$with_glib_exec_prefix"
  941.   glib_config_exec_prefix="$withval"
  942. else
  943.   glib_config_exec_prefix=""
  944. fi
  945.  
  946. # Check whether --enable-glibtest or --disable-glibtest was given.
  947. if test "${enable_glibtest+set}" = set; then
  948.   enableval="$enable_glibtest"
  949.   :
  950. else
  951.   enable_glibtest=yes
  952. fi
  953.  
  954.  
  955.   if test x$glib_config_exec_prefix != x ; then
  956.      glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
  957.      if test x${GLIB_CONFIG+set} != xset ; then
  958.         GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
  959.      fi
  960.   fi
  961.   if test x$glib_config_prefix != x ; then
  962.      glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
  963.      if test x${GLIB_CONFIG+set} != xset ; then
  964.         GLIB_CONFIG=$glib_config_prefix/bin/glib-config
  965.      fi
  966.   fi
  967.  
  968.   for module in . 
  969.   do
  970.       case "$module" in
  971.          gmodule) 
  972.              glib_config_args="$glib_config_args gmodule"
  973.          ;;
  974.          gthread) 
  975.              glib_config_args="$glib_config_args gthread"
  976.          ;;
  977.       esac
  978.   done
  979.  
  980.   # Extract the first word of "glib-config", so it can be a program name with args.
  981. set dummy glib-config; ac_word=$2
  982. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  983. echo "configure:984: checking for $ac_word" >&5
  984. if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
  985.   echo $ac_n "(cached) $ac_c" 1>&6
  986. else
  987.   case "$GLIB_CONFIG" in
  988.   /*)
  989.   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
  990.   ;;
  991.   ?:/*)             
  992.   ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
  993.   ;;
  994.   *)
  995.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  996.   ac_dummy="$PATH"
  997.   for ac_dir in $ac_dummy; do 
  998.     test -z "$ac_dir" && ac_dir=.
  999.     if test -f $ac_dir/$ac_word; then
  1000.       ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
  1001.       break
  1002.     fi
  1003.   done
  1004.   IFS="$ac_save_ifs"
  1005.   test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
  1006.   ;;
  1007. esac
  1008. fi
  1009. GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
  1010. if test -n "$GLIB_CONFIG"; then
  1011.   echo "$ac_t""$GLIB_CONFIG" 1>&6
  1012. else
  1013.   echo "$ac_t""no" 1>&6
  1014. fi
  1015.  
  1016.   min_glib_version=1.2.0
  1017.   echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
  1018. echo "configure:1019: checking for GLIB - version >= $min_glib_version" >&5
  1019.   no_glib=""
  1020.   if test "$GLIB_CONFIG" = "no" ; then
  1021.     no_glib=yes
  1022.   else
  1023.     GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
  1024.     GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
  1025.     glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
  1026.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  1027.     glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
  1028.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  1029.     glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
  1030.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  1031.     if test "x$enable_glibtest" = "xyes" ; then
  1032.       ac_save_CFLAGS="$CFLAGS"
  1033.       ac_save_LIBS="$LIBS"
  1034.       CFLAGS="$CFLAGS $GLIB_CFLAGS"
  1035.       LIBS="$GLIB_LIBS $LIBS"
  1036.       rm -f conf.glibtest
  1037.       if test "$cross_compiling" = yes; then
  1038.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  1039. else
  1040.   cat > conftest.$ac_ext <<EOF
  1041. #line 1042 "configure"
  1042. #include "confdefs.h"
  1043.  
  1044. #include <glib.h>
  1045. #include <stdio.h>
  1046. #include <stdlib.h>
  1047.  
  1048. int 
  1049. main ()
  1050. {
  1051.   int major, minor, micro;
  1052.   char *tmp_version;
  1053.  
  1054.   system ("touch conf.glibtest");
  1055.  
  1056.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  1057.   tmp_version = g_strdup("$min_glib_version");
  1058.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  1059.      printf("%s, bad version string\n", "$min_glib_version");
  1060.      exit(1);
  1061.    }
  1062.  
  1063.   if ((glib_major_version != $glib_config_major_version) ||
  1064.       (glib_minor_version != $glib_config_minor_version) ||
  1065.       (glib_micro_version != $glib_config_micro_version))
  1066.     {
  1067.       printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 
  1068.              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
  1069.              glib_major_version, glib_minor_version, glib_micro_version);
  1070.       printf ("*** was found! If glib-config was correct, then it is best\n");
  1071.       printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
  1072.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  1073.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  1074.       printf("*** required on your system.\n");
  1075.       printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
  1076.       printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
  1077.       printf("*** before re-running configure\n");
  1078.     } 
  1079.   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
  1080.        (glib_minor_version != GLIB_MINOR_VERSION) ||
  1081.            (glib_micro_version != GLIB_MICRO_VERSION))
  1082.     {
  1083.       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
  1084.          GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
  1085.       printf("*** library (version %d.%d.%d)\n",
  1086.          glib_major_version, glib_minor_version, glib_micro_version);
  1087.     }
  1088.   else
  1089.     {
  1090.       if ((glib_major_version > major) ||
  1091.         ((glib_major_version == major) && (glib_minor_version > minor)) ||
  1092.         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
  1093.       {
  1094.         return 0;
  1095.        }
  1096.      else
  1097.       {
  1098.         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
  1099.                glib_major_version, glib_minor_version, glib_micro_version);
  1100.         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
  1101.            major, minor, micro);
  1102.         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
  1103.         printf("***\n");
  1104.         printf("*** If you have already installed a sufficiently new version, this error\n");
  1105.         printf("*** probably means that the wrong copy of the glib-config shell script is\n");
  1106.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  1107.         printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
  1108.         printf("*** correct copy of glib-config. (In this case, you will have to\n");
  1109.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  1110.         printf("*** so that the correct libraries are found at run-time))\n");
  1111.       }
  1112.     }
  1113.   return 1;
  1114. }
  1115.  
  1116. EOF
  1117. if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1118. then
  1119.   :
  1120. else
  1121.   echo "configure: failed program was:" >&5
  1122.   cat conftest.$ac_ext >&5
  1123.   rm -fr conftest*
  1124.   no_glib=yes
  1125. fi
  1126. rm -fr conftest*
  1127. fi
  1128.  
  1129.        CFLAGS="$ac_save_CFLAGS"
  1130.        LIBS="$ac_save_LIBS"
  1131.      fi
  1132.   fi
  1133.   if test "x$no_glib" = x ; then
  1134.      echo "$ac_t""yes" 1>&6
  1135.      :     
  1136.   else
  1137.      echo "$ac_t""no" 1>&6
  1138.      if test "$GLIB_CONFIG" = "no" ; then
  1139.        echo "*** The glib-config script installed by GLIB could not be found"
  1140.        echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
  1141.        echo "*** your path, or set the GLIB_CONFIG environment variable to the"
  1142.        echo "*** full path to glib-config."
  1143.      else
  1144.        if test -f conf.glibtest ; then
  1145.         :
  1146.        else
  1147.           echo "*** Could not run GLIB test program, checking why..."
  1148.           CFLAGS="$CFLAGS $GLIB_CFLAGS"
  1149.           LIBS="$LIBS $GLIB_LIBS"
  1150.           cat > conftest.$ac_ext <<EOF
  1151. #line 1152 "configure"
  1152. #include "confdefs.h"
  1153.  
  1154. #include <glib.h>
  1155. #include <stdio.h>
  1156.  
  1157. int main() {
  1158.  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 
  1159. ; return 0; }
  1160. EOF
  1161. if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1162.   rm -rf conftest*
  1163.    echo "*** The test program compiled, but did not run. This usually means"
  1164.           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
  1165.           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
  1166.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  1167.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  1168.           echo "*** is required on your system"
  1169.       echo "***"
  1170.           echo "*** If you have an old version installed, it is best to remove it, although"
  1171.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  1172.           echo "***"
  1173.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  1174.           echo "*** came with the system with the command"
  1175.           echo "***"
  1176.           echo "***    rpm --erase --nodeps gtk gtk-devel" 
  1177. else
  1178.   echo "configure: failed program was:" >&5
  1179.   cat conftest.$ac_ext >&5
  1180.   rm -rf conftest*
  1181.    echo "*** The test program failed to compile or link. See the file config.log for the"
  1182.           echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
  1183.           echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
  1184.           echo "*** may want to edit the glib-config script: $GLIB_CONFIG" 
  1185. fi
  1186. rm -f conftest*
  1187.           CFLAGS="$ac_save_CFLAGS"
  1188.           LIBS="$ac_save_LIBS"
  1189.        fi
  1190.      fi
  1191.      GLIB_CFLAGS=""
  1192.      GLIB_LIBS=""
  1193.      { echo "configure: error: ** unable to find glib" 1>&2; exit 1; }
  1194.   fi
  1195.   
  1196.   
  1197.   rm -f conf.glibtest
  1198.  
  1199.  
  1200. ac_gimp_save_CPPFLAGS="$CPPFLAGS"
  1201. CPPFLAGS="$CPPFLAGS $GIMP_CFLAGS"
  1202. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  1203. echo "configure:1204: checking how to run the C preprocessor" >&5
  1204. # On Suns, sometimes $CPP names a directory.
  1205. if test -n "$CPP" && test -d "$CPP"; then
  1206.   CPP=
  1207. fi
  1208. if test -z "$CPP"; then
  1209. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  1210.   echo $ac_n "(cached) $ac_c" 1>&6
  1211. else
  1212.     # This must be in double quotes, not single quotes, because CPP may get
  1213.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  1214.   CPP="${CC-cc} -E"
  1215.   # On the NeXT, cc -E runs the code through the compiler's parser,
  1216.   # not just through cpp.
  1217.   cat > conftest.$ac_ext <<EOF
  1218. #line 1219 "configure"
  1219. #include "confdefs.h"
  1220. #include <assert.h>
  1221. Syntax Error
  1222. EOF
  1223. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1224. { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1225. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1226. if test -z "$ac_err"; then
  1227.   :
  1228. else
  1229.   echo "$ac_err" >&5
  1230.   echo "configure: failed program was:" >&5
  1231.   cat conftest.$ac_ext >&5
  1232.   rm -rf conftest*
  1233.   CPP="${CC-cc} -E -traditional-cpp"
  1234.   cat > conftest.$ac_ext <<EOF
  1235. #line 1236 "configure"
  1236. #include "confdefs.h"
  1237. #include <assert.h>
  1238. Syntax Error
  1239. EOF
  1240. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1241. { (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1242. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1243. if test -z "$ac_err"; then
  1244.   :
  1245. else
  1246.   echo "$ac_err" >&5
  1247.   echo "configure: failed program was:" >&5
  1248.   cat conftest.$ac_ext >&5
  1249.   rm -rf conftest*
  1250.   CPP="${CC-cc} -nologo -E"
  1251.   cat > conftest.$ac_ext <<EOF
  1252. #line 1253 "configure"
  1253. #include "confdefs.h"
  1254. #include <assert.h>
  1255. Syntax Error
  1256. EOF
  1257. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1258. { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1259. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1260. if test -z "$ac_err"; then
  1261.   :
  1262. else
  1263.   echo "$ac_err" >&5
  1264.   echo "configure: failed program was:" >&5
  1265.   cat conftest.$ac_ext >&5
  1266.   rm -rf conftest*
  1267.   CPP=/lib/cpp
  1268. fi
  1269. rm -f conftest*
  1270. fi
  1271. rm -f conftest*
  1272. fi
  1273. rm -f conftest*
  1274.   ac_cv_prog_CPP="$CPP"
  1275. fi
  1276.   CPP="$ac_cv_prog_CPP"
  1277. else
  1278.   ac_cv_prog_CPP="$CPP"
  1279. fi
  1280. echo "$ac_t""$CPP" 1>&6
  1281.  
  1282. cat > conftest.$ac_ext <<EOF
  1283. #line 1284 "configure"
  1284. #include "confdefs.h"
  1285. #include <libgimp/gimp.h>
  1286. EOF
  1287. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1288.   egrep "DIVIDE_MODE" >/dev/null 2>&1; then
  1289.   rm -rf conftest*
  1290.   cat >> confdefs.h <<\EOF
  1291. #define HAVE_DIVIDE_MODE 1
  1292. EOF
  1293.  
  1294. fi
  1295. rm -f conftest*
  1296.  
  1297. for ac_hdr in libgimp/gimpmodule.h libintl.h
  1298. do
  1299. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1300. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1301. echo "configure:1302: checking for $ac_hdr" >&5
  1302. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1303.   echo $ac_n "(cached) $ac_c" 1>&6
  1304. else
  1305.   cat > conftest.$ac_ext <<EOF
  1306. #line 1307 "configure"
  1307. #include "confdefs.h"
  1308. #include <$ac_hdr>
  1309. EOF
  1310. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1311. { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1312. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1313. if test -z "$ac_err"; then
  1314.   rm -rf conftest*
  1315.   eval "ac_cv_header_$ac_safe=yes"
  1316. else
  1317.   echo "$ac_err" >&5
  1318.   echo "configure: failed program was:" >&5
  1319.   cat conftest.$ac_ext >&5
  1320.   rm -rf conftest*
  1321.   eval "ac_cv_header_$ac_safe=no"
  1322. fi
  1323. rm -f conftest*
  1324. fi
  1325. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1326.   echo "$ac_t""yes" 1>&6
  1327.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1328.   cat >> confdefs.h <<EOF
  1329. #define $ac_tr_hdr 1
  1330. EOF
  1331.  
  1332. else
  1333.   echo "$ac_t""no" 1>&6
  1334. fi
  1335. done
  1336.  
  1337. CPPFLAGS="$ac_gimp_save_CPPFLAGS"
  1338.  
  1339. for ac_hdr in unistd.h
  1340. do
  1341. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1342. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1343. echo "configure:1344: checking for $ac_hdr" >&5
  1344. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1345.   echo $ac_n "(cached) $ac_c" 1>&6
  1346. else
  1347.   cat > conftest.$ac_ext <<EOF
  1348. #line 1349 "configure"
  1349. #include "confdefs.h"
  1350. #include <$ac_hdr>
  1351. EOF
  1352. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1353. { (eval echo configure:1354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1354. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1355. if test -z "$ac_err"; then
  1356.   rm -rf conftest*
  1357.   eval "ac_cv_header_$ac_safe=yes"
  1358. else
  1359.   echo "$ac_err" >&5
  1360.   echo "configure: failed program was:" >&5
  1361.   cat conftest.$ac_ext >&5
  1362.   rm -rf conftest*
  1363.   eval "ac_cv_header_$ac_safe=no"
  1364. fi
  1365. rm -f conftest*
  1366. fi
  1367. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1368.   echo "$ac_t""yes" 1>&6
  1369.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1370.   cat >> confdefs.h <<EOF
  1371. #define $ac_tr_hdr 1
  1372. EOF
  1373.  
  1374. else
  1375.   echo "$ac_t""no" 1>&6
  1376. fi
  1377. done
  1378.  
  1379.  
  1380. CONFIG_H="config.h"
  1381.  
  1382. for ac_func in vsnprintf
  1383. do
  1384. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1385. echo "configure:1386: checking for $ac_func" >&5
  1386. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1387.   echo $ac_n "(cached) $ac_c" 1>&6
  1388. else
  1389.   cat > conftest.$ac_ext <<EOF
  1390. #line 1391 "configure"
  1391. #include "confdefs.h"
  1392. /* System header to define __stub macros and hopefully few prototypes,
  1393.     which can conflict with char $ac_func(); below.  */
  1394. #include <assert.h>
  1395. /* Override any gcc2 internal prototype to avoid an error.  */
  1396. /* We use char because int might match the return type of a gcc2
  1397.     builtin and then its argument prototype would still apply.  */
  1398. char $ac_func();
  1399.  
  1400. int main() {
  1401.  
  1402. /* The GNU C library defines this for functions which it implements
  1403.     to always fail with ENOSYS.  Some functions are actually named
  1404.     something starting with __ and the normal name is an alias.  */
  1405. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1406. choke me
  1407. #else
  1408. $ac_func();
  1409. #endif
  1410.  
  1411. ; return 0; }
  1412. EOF
  1413. if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1414.   rm -rf conftest*
  1415.   eval "ac_cv_func_$ac_func=yes"
  1416. else
  1417.   echo "configure: failed program was:" >&5
  1418.   cat conftest.$ac_ext >&5
  1419.   rm -rf conftest*
  1420.   eval "ac_cv_func_$ac_func=no"
  1421. fi
  1422. rm -f conftest*
  1423. fi
  1424.  
  1425. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1426.   echo "$ac_t""yes" 1>&6
  1427.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1428.   cat >> confdefs.h <<EOF
  1429. #define $ac_tr_func 1
  1430. EOF
  1431.  cat >> confdefs.h <<\EOF
  1432. #define HAVE_VSNPRINTF 1
  1433. EOF
  1434.  
  1435. else
  1436.   echo "$ac_t""no" 1>&6
  1437. echo "configure: warning: vsnprintf not found.. I hope you are using gcc..." 1>&2
  1438.  
  1439. fi
  1440. done
  1441.  
  1442.  
  1443. echo $ac_n "checking for intelligent life""... $ac_c" 1>&6
  1444. echo "configure:1445: checking for intelligent life" >&5
  1445. echo "$ac_t""not found" 1>&6
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465. for ac_func in _exit
  1466. do
  1467. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1468. echo "configure:1469: checking for $ac_func" >&5
  1469. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1470.   echo $ac_n "(cached) $ac_c" 1>&6
  1471. else
  1472.   cat > conftest.$ac_ext <<EOF
  1473. #line 1474 "configure"
  1474. #include "confdefs.h"
  1475. /* System header to define __stub macros and hopefully few prototypes,
  1476.     which can conflict with char $ac_func(); below.  */
  1477. #include <assert.h>
  1478. /* Override any gcc2 internal prototype to avoid an error.  */
  1479. /* We use char because int might match the return type of a gcc2
  1480.     builtin and then its argument prototype would still apply.  */
  1481. char $ac_func();
  1482.  
  1483. int main() {
  1484.  
  1485. /* The GNU C library defines this for functions which it implements
  1486.     to always fail with ENOSYS.  Some functions are actually named
  1487.     something starting with __ and the normal name is an alias.  */
  1488. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1489. choke me
  1490. #else
  1491. $ac_func();
  1492. #endif
  1493.  
  1494. ; return 0; }
  1495. EOF
  1496. if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1497.   rm -rf conftest*
  1498.   eval "ac_cv_func_$ac_func=yes"
  1499. else
  1500.   echo "configure: failed program was:" >&5
  1501.   cat conftest.$ac_ext >&5
  1502.   rm -rf conftest*
  1503.   eval "ac_cv_func_$ac_func=no"
  1504. fi
  1505. rm -f conftest*
  1506. fi
  1507.  
  1508. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1509.   echo "$ac_t""yes" 1>&6
  1510.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1511.   cat >> confdefs.h <<EOF
  1512. #define $ac_tr_func 1
  1513. EOF
  1514.  
  1515. else
  1516.   echo "$ac_t""no" 1>&6
  1517. fi
  1518. done
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524. INTLLIBS=
  1525. MSGFMT=
  1526.  
  1527.  
  1528.  
  1529. trap '' 1 2 15
  1530. cat > confcache <<\EOF
  1531. # This file is a shell script that caches the results of configure
  1532. # tests run on this system so they can be shared between configure
  1533. # scripts and configure runs.  It is not useful on other systems.
  1534. # If it contains results you don't want to keep, you may remove or edit it.
  1535. #
  1536. # By default, configure uses ./config.cache as the cache file,
  1537. # creating it if it does not exist already.  You can give configure
  1538. # the --cache-file=FILE option to use a different cache file; that is
  1539. # what configure does when it calls configure scripts in
  1540. # subdirectories, so they share the cache.
  1541. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1542. # config.status only pays attention to the cache file if you give it the
  1543. # --recheck option to rerun configure.
  1544. #
  1545. EOF
  1546. # The following way of writing the cache mishandles newlines in values,
  1547. # but we know of no workaround that is simple, portable, and efficient.
  1548. # So, don't put newlines in cache variables' values.
  1549. # Ultrix sh set writes to stderr and can't be redirected directly,
  1550. # and sets the high bit in the cache file unless we assign to the vars.
  1551. (set) 2>&1 |
  1552.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1553.   *ac_space=\ *)
  1554.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1555.     # turns \\\\ into \\, and sed turns \\ into \).
  1556.     sed -n \
  1557.       -e "s/'/'\\\\''/g" \
  1558.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1559.     ;;
  1560.   *)
  1561.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1562.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1563.     ;;
  1564.   esac >> confcache
  1565. if cmp -s $cache_file confcache; then
  1566.   :
  1567. else
  1568.   if test -w $cache_file; then
  1569.     echo "updating cache $cache_file"
  1570.     cat confcache > $cache_file
  1571.   else
  1572.     echo "not updating unwritable cache $cache_file"
  1573.   fi
  1574. fi
  1575. rm -f confcache
  1576.  
  1577. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1578.  
  1579. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1580. # Let make expand exec_prefix.
  1581. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1582.  
  1583. # Any assignment to VPATH causes Sun make to only execute
  1584. # the first set of double-colon rules, so remove it if not needed.
  1585. # If there is a colon in the path, we need to keep it.
  1586. if test "x$srcdir" = x.; then
  1587.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1588. fi
  1589.  
  1590. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1591.  
  1592. DEFS=-DHAVE_CONFIG_H
  1593.  
  1594. # Without the "./", some shells look in PATH for config.status.
  1595. : ${CONFIG_STATUS=./config.status}
  1596.  
  1597. echo creating $CONFIG_STATUS
  1598. rm -f $CONFIG_STATUS
  1599. cat > $CONFIG_STATUS <<EOF
  1600. #! /bin/sh
  1601. # Generated automatically by configure.
  1602. # Run this file to recreate the current configuration.
  1603. # This directory was configured as follows,
  1604. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1605. #
  1606. # $0 $ac_configure_args
  1607. #
  1608. # Compiler output produced by configure, useful for debugging
  1609. # configure, is in ./config.log if it exists.
  1610.  
  1611. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1612. for ac_option
  1613. do
  1614.   case "\$ac_option" in
  1615.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1616.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1617.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1618.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1619.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1620.     exit 0 ;;
  1621.   -help | --help | --hel | --he | --h)
  1622.     echo "\$ac_cs_usage"; exit 0 ;;
  1623.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1624.   esac
  1625. done
  1626.  
  1627. ac_given_srcdir=$srcdir
  1628.  
  1629. trap 'rm -fr `echo "config.pl config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1630. EOF
  1631. cat >> $CONFIG_STATUS <<EOF
  1632.  
  1633. # Protect against being on the right side of a sed subst in config.status.
  1634. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1635.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1636. $ac_vpsub
  1637. $extrasub
  1638. s%@SHELL@%$SHELL%g
  1639. s%@CFLAGS@%$CFLAGS%g
  1640. s%@CPPFLAGS@%$CPPFLAGS%g
  1641. s%@CXXFLAGS@%$CXXFLAGS%g
  1642. s%@FFLAGS@%$FFLAGS%g
  1643. s%@DEFS@%$DEFS%g
  1644. s%@LDFLAGS@%$LDFLAGS%g
  1645. s%@LIBS@%$LIBS%g
  1646. s%@exec_prefix@%$exec_prefix%g
  1647. s%@prefix@%$prefix%g
  1648. s%@program_transform_name@%$program_transform_name%g
  1649. s%@bindir@%$bindir%g
  1650. s%@sbindir@%$sbindir%g
  1651. s%@libexecdir@%$libexecdir%g
  1652. s%@datadir@%$datadir%g
  1653. s%@sysconfdir@%$sysconfdir%g
  1654. s%@sharedstatedir@%$sharedstatedir%g
  1655. s%@localstatedir@%$localstatedir%g
  1656. s%@libdir@%$libdir%g
  1657. s%@includedir@%$includedir%g
  1658. s%@oldincludedir@%$oldincludedir%g
  1659. s%@infodir@%$infodir%g
  1660. s%@mandir@%$mandir%g
  1661. s%@GIMP@%$GIMP%g
  1662. s%@GIMPTOOL@%$GIMPTOOL%g
  1663. s%@GIMP_CFLAGS@%$GIMP_CFLAGS%g
  1664. s%@GIMP_LIBS@%$GIMP_LIBS%g
  1665. s%@GIMP_CFLAGS_NOUI@%$GIMP_CFLAGS_NOUI%g
  1666. s%@GIMP_LIBS_NOUI@%$GIMP_LIBS_NOUI%g
  1667. s%@GIMP_DATA_DIR@%$GIMP_DATA_DIR%g
  1668. s%@GIMP_PLUGIN_DIR@%$GIMP_PLUGIN_DIR%g
  1669. s%@GLIB_CONFIG@%$GLIB_CONFIG%g
  1670. s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
  1671. s%@GLIB_LIBS@%$GLIB_LIBS%g
  1672. s%@CPP@%$CPP%g
  1673. s%@EXTENSIVE_TESTS@%$EXTENSIVE_TESTS%g
  1674. s%@IN_GIMP@%$IN_GIMP%g
  1675. s%@PERL@%$PERL%g
  1676. s%@INTLLIBS@%$INTLLIBS%g
  1677. s%@MSGFMT@%$MSGFMT%g
  1678.  
  1679. CEOF
  1680. EOF
  1681.  
  1682. cat >> $CONFIG_STATUS <<\EOF
  1683.  
  1684. # Split the substitutions into bite-sized pieces for seds with
  1685. # small command number limits, like on Digital OSF/1 and HP-UX.
  1686. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1687. ac_file=1 # Number of current file.
  1688. ac_beg=1 # First line for current file.
  1689. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1690. ac_more_lines=:
  1691. ac_sed_cmds=""
  1692. while $ac_more_lines; do
  1693.   if test $ac_beg -gt 1; then
  1694.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1695.   else
  1696.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1697.   fi
  1698.   if test ! -s conftest.s$ac_file; then
  1699.     ac_more_lines=false
  1700.     rm -f conftest.s$ac_file
  1701.   else
  1702.     if test -z "$ac_sed_cmds"; then
  1703.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1704.     else
  1705.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1706.     fi
  1707.     ac_file=`expr $ac_file + 1`
  1708.     ac_beg=$ac_end
  1709.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1710.   fi
  1711. done
  1712. if test -z "$ac_sed_cmds"; then
  1713.   ac_sed_cmds=cat
  1714. fi
  1715. EOF
  1716.  
  1717. cat >> $CONFIG_STATUS <<EOF
  1718.  
  1719. CONFIG_FILES=\${CONFIG_FILES-"config.pl"}
  1720. EOF
  1721. cat >> $CONFIG_STATUS <<\EOF
  1722. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1723.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1724.   case "$ac_file" in
  1725.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1726.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1727.   *) ac_file_in="${ac_file}.in" ;;
  1728.   esac
  1729.  
  1730.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1731.  
  1732.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1733.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1734.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1735.     # The file is in a subdirectory.
  1736.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  1737.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1738.     # A "../" for each directory in $ac_dir_suffix.
  1739.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1740.   else
  1741.     ac_dir_suffix= ac_dots=
  1742.   fi
  1743.  
  1744.   case "$ac_given_srcdir" in
  1745.   .)  srcdir=.
  1746.       if test -z "$ac_dots"; then top_srcdir=.
  1747.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1748.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1749.   *) # Relative path.
  1750.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1751.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1752.   esac
  1753.  
  1754.  
  1755.   echo creating "$ac_file"
  1756.   rm -f "$ac_file"
  1757.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1758.   case "$ac_file" in
  1759.   *Makefile*) ac_comsub="1i\\
  1760. # $configure_input" ;;
  1761.   *) ac_comsub= ;;
  1762.   esac
  1763.  
  1764.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1765.   sed -e "$ac_comsub
  1766. s%@configure_input@%$configure_input%g
  1767. s%@srcdir@%$srcdir%g
  1768. s%@top_srcdir@%$top_srcdir%g
  1769. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1770. fi; done
  1771. rm -f conftest.s*
  1772.  
  1773. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1774. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1775. #
  1776. # ac_d sets the value in "#define NAME VALUE" lines.
  1777. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  1778. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  1779. ac_dC='\3'
  1780. ac_dD='%g'
  1781. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1782. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1783. ac_uB='\([     ]\)%\1#\2define\3'
  1784. ac_uC=' '
  1785. ac_uD='\4%g'
  1786. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1787. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  1788. ac_eB='$%\1#\2define\3'
  1789. ac_eC=' '
  1790. ac_eD='%g'
  1791.  
  1792. if test "${CONFIG_HEADERS+set}" != set; then
  1793. EOF
  1794. cat >> $CONFIG_STATUS <<EOF
  1795.   CONFIG_HEADERS="config.h"
  1796. EOF
  1797. cat >> $CONFIG_STATUS <<\EOF
  1798. fi
  1799. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1800.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1801.   case "$ac_file" in
  1802.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1803.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1804.   *) ac_file_in="${ac_file}.in" ;;
  1805.   esac
  1806.  
  1807.   echo creating $ac_file
  1808.  
  1809.   rm -f conftest.frag conftest.in conftest.out
  1810.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1811.   cat $ac_file_inputs > conftest.in
  1812.  
  1813. EOF
  1814.  
  1815. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1816. # the proper values into config.h.in to produce config.h.  And first:
  1817. # Protect against being on the right side of a sed subst in config.status.
  1818. # Protect against being in an unquoted here document in config.status.
  1819. rm -f conftest.vals
  1820. cat > conftest.hdr <<\EOF
  1821. s/[\\&%]/\\&/g
  1822. s%[\\$`]%\\&%g
  1823. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1824. s%ac_d%ac_u%gp
  1825. s%ac_u%ac_e%gp
  1826. EOF
  1827. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1828. rm -f conftest.hdr
  1829.  
  1830. # This sed command replaces #undef with comments.  This is necessary, for
  1831. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1832. # on some systems where configure will not decide to define it.
  1833. cat >> conftest.vals <<\EOF
  1834. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1835. EOF
  1836.  
  1837. # Break up conftest.vals because some shells have a limit on
  1838. # the size of here documents, and old seds have small limits too.
  1839.  
  1840. rm -f conftest.tail
  1841. while :
  1842. do
  1843.   ac_lines=`grep -c . conftest.vals`
  1844.   # grep -c gives empty output for an empty file on some AIX systems.
  1845.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1846.   # Write a limited-size here document to conftest.frag.
  1847.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1848.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1849.   echo 'CEOF
  1850.   sed -f conftest.frag conftest.in > conftest.out
  1851.   rm -f conftest.in
  1852.   mv conftest.out conftest.in
  1853. ' >> $CONFIG_STATUS
  1854.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1855.   rm -f conftest.vals
  1856.   mv conftest.tail conftest.vals
  1857. done
  1858. rm -f conftest.vals
  1859.  
  1860. cat >> $CONFIG_STATUS <<\EOF
  1861.   rm -f conftest.frag conftest.h
  1862.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1863.   cat conftest.in >> conftest.h
  1864.   rm -f conftest.in
  1865.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  1866.     echo "$ac_file is unchanged"
  1867.     rm -f conftest.h
  1868.   else
  1869.     # Remove last slash and all that follows it.  Not all systems have dirname.
  1870.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1871.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1872.       # The file is in a subdirectory.
  1873.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  1874.     fi
  1875.     rm -f $ac_file
  1876.     mv conftest.h $ac_file
  1877.   fi
  1878. fi; done
  1879.  
  1880. EOF
  1881. cat >> $CONFIG_STATUS <<EOF
  1882.  
  1883. EOF
  1884. cat >> $CONFIG_STATUS <<\EOF
  1885.  
  1886. exit 0
  1887. EOF
  1888. chmod +x $CONFIG_STATUS
  1889. rm -fr confdefs* $ac_clean_files
  1890. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1891.  
  1892.  
  1893. echo "now invoking perl to complete the configuration..."
  1894. set -x
  1895. exec $PERL $MAKEFILE_PL --writemakefile PREFIX="$prefix"
  1896.  
  1897.